-- GENERATED SPELL FOR [Edirah] --


function spell0_16749(pUnit, Event) --6Conjure Food,Self--
pUnit:FullCastSpellOnTarget(990,pUnit)
pUnit:RegisterEvent('Sorts_16749', 3000, 1)
end

function Sorts_16749(pUnit, Event)
local choix_sorts_16749 = math.random(0, 0)
if choix_sorts_16749 == 0 then
pUnit:RegisterEvent('spell0_16749', 1, 1)
end
end

function mob16749_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16749', math.random(1500, 3000), 1)
end

function mob16749_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16749_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16749_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16749, 1, 'mob16749_Action')
RegisterUnitEvent(16749, 2, 'mob16749_Leave')
RegisterUnitEvent(16749, 3, 'mob16749_Kill')
RegisterUnitEvent(16749, 4, 'mob16749_Die')
